<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="__CSS__/ex/common.css">
    <link rel="stylesheet" href="__CSS__/ex/login.css">
    <title>WESTGOLDB.EXC</title>
    <script src="__JS__/ios-web-app.js"></script>
</head>

<body style="padding-top: 38px">
    <header class="index_header">
        我的
    </header>
    <section class="yy">
        <div class="mine_banner">
            <div class="mine_info">
                <div class="mine_info_left">
                    <div class="mine_info_left_img">
                        <if condition="$data.headimgurl eq ''">
                            <img src="__IMG__/ex/exlogo.png" alt=""/>
                            <else />
                            <img src="{$data.headimgurl}" alt="">
                        </if>
                    </div>
                    <div>
                        <php>
                            $level=C('leader');
                            $agent=C('agent_level');
                        </php>
                        <p>昵称：{$data.username} </p>
                        <p>手机：+{$data.phone_ex}{$data.phone}</p>
                        <div style="display: flex;justify-content: flex-start;">
                            <p style="margin-right: .4rem;">级别：{$level[$data['level']]}</p>
                            <p>节点：{$agent[$data['agent_level']]}</p>
                        </div>
                    </div>
                </div>
                <p>钱包地址：{$data.eth_address}</p>
            </div>
        </div>

        <div class="mine_money">
            <h3>持币量</h3>
<!--            <h3>EXUU:{$data.z1}&nbsp;&nbsp;</h3>-->
<!--            <h3>USDT:{$data.z8}</h3>-->
            <div class="account_info">
                <div>
                    <p>EXUU</p>
                    <h5>{$data.z1}</h5>
                </div>
                <div class="addhr"></div>
                <div>
                    <p>USDT</p>
                    <h5>{$data.z8}</h5>
                </div>
            </div>

        </div>

        <div class="mine_zichan_two">
            <div>
                <p>今日节点收益</p>
                <h5>{$today|default=0}</h5>
            </div>
            <div>
                <p>总节点收益</p>
                <h5>{$all|default=0}</h5>
            </div>
        </div>

        <div class="mine_other">
            <div class="mine_other_tit">
                <img src="__IMG__/ex/anquan.png" alt="">
                <h5>安全中心</h5>
            </div>
            <div class="mine_other_cont">
                <div>
                    <img src="__IMG__/ex/renzheng.png" alt="">
                    <a href="{:U('User/user_info')}">
                        <p>个人资料</p>
                    </a>
                </div>
                <!--<div>-->
                    <!--<img src="__WAPIMG__/record.png" alt="">-->
                    <!--<a href="{:U('User/record')}">-->
                        <!--<p>充提币记录</p>-->
                    <!--</a>-->
                <!--</div>-->
                <div>
                    <img src="__IMG__/ex/xgmm.png" alt="">
                    <a href="{:U('User/save_password')}">
                        <p>修改密码</p>
                    </a>
                </div>
            </div>
        </div>


        <div class="mine_other">
            <div class="mine_other_tit">
                <img src="__IMG__/ex/zh.png" alt="">
                <h5>账户</h5>
            </div>
            <div class="mine_other_cont">
                <div>
                    <img src="__IMG__/ex/mx.png" alt="">
                    <a href="{:U('Property/qianbao')}">
                        <p>账户明细</p>
                    </a>
                </div>
                <div>
                    <img src="__IMG__/ex/sy.png" alt="">
                    <a href="{:U('User/earnings')}">
                        <p>我的收益</p>
                    </a>
                </div>
                <div>
                    <img src="__IMG__/ex/sy.png" alt="">
                    <a href="{:U('Property/touzi_detail')}">
                        <p>存币明细</p>
                    </a>
                </div>
                <!--<div>-->
                    <!--<img src="__IMG__/ex/sy.png" alt="">-->
                    <!--<div class="qiehuan">-->
                        <!--<p>切换语言</p>-->
                    <!--</div>-->
                <!--</div>-->
            </div>
        </div>

        <div class="mine_other">
            <div class="mine_other_tit">
                <img src="__IMG__/ex/qt.png" alt="">
                <h5>其它</h5>
            </div>
            <div class="mine_other_cont">
                <div>
                    <img src="__IMG__/ex/tz.png" alt="">
                    <a href="{:U('qrcode')}">
                        <p>分享推广</p>
                    </a>
                </div>
                <div>
                    <img src="__IMG__/ex/logout.png" alt="">
                    <a href="{:U('Public/getOut')}">
                        <p>退出登录</p>
                    </a>
                </div>
                <div>
                    <img src="__IMG__/ex/gg.png" alt="">
                    <a href="{:U('User/notice')}">
                        <p>通知公告</p>
                    </a>
                </div>
            </div>
        </div>
    </section>
    <footer class="footer">
        <ul>
            <li>
                <a href="{:U('Property/index')}">
                    <div>
                        <img src="__IMG__/ex/zichan.png" alt="">
                    </div>
                    <p>资产</p>
                </a>
            </li>
            <li>
                <a href="{:U('Hangqing/index')}">
                    <div><img src="__IMG__/ex/hangqing.png" alt=""></div>
                    <p>行情</p>
                </a>
            </li>
            <li>
                <a href="{:U('Discover/index')}">
                    <div><img src="__IMG__/ex/yingyong.png" alt=""></div>
                    <p>应用</p>
                </a>
            </li>
            <li>
                <a href="{:U('User/index')}">
                    <div><img src="__IMG__/ex/wode_active.png" alt=""></div>
                    <p class="active">我的</p>
                </a>
            </li>
        </ul>
    </footer>
    <script src="__COMMON__/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script>
        $('.logout').click(function () {
            window.location.href = "{:U('Public/getOut')}"
        });

        $('#sign').click(function () {
            let ptr62 = $('.ptr62').val();
            let money = $('.money').text();
            let price = parseFloat(ptr62) + parseFloat(money);

            $.ajax({
                type: 'POST',
                url: "{:U('User/sign')}",
                dataType: "json",
                success: function (data) {
                    if (data.code == 1) {
                        alert(data.msg);
                    } else {
                        alert(data.msg);
                        $("#sign").text('已签到');

                        $('.money').text(price.toFixed(2));
                        // window.location.href=data.data;
                    }
                }
            });
        });
        // $(".qiehuan").click(function () {
        //     $url=window.location.href;
        //     $url_arr=$url.split('/');
        //     $url_arr[3]='vietnam.php';
        //     $url=$url_arr.join('/');
        //     // alert($url);
        //     window.location.href=$url;
        // })
    </script>

</body>

</html>